package com.hdwe.icpms.admin.domain.vo;

import com.hdwe.icpms.admin.domain.Protocol;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 设备协议视图对象 cpc_protocol
 *
 * @author Lus
 * @date 2024-12-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Protocol.class)
public class ProtocolVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 协议名称
     */
    @ExcelProperty(value = "协议名称")
    private String name;

    /**
     * 协议头
     */
    @ExcelProperty(value = "协议头")
    private String header;

    /**
     * 功能码
     */
    @ExcelProperty(value = "功能码")
    private String functionCode;

    /**
     * 协议版本号
     */
    @ExcelProperty(value = "协议版本号")
    private String version;

    /**
     * 故障代码
     */
    @ExcelProperty(value = "故障代码")
    private String faultCode;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_able_status")
    private String status;

    /**
     * 创建部门
     */
    @ExcelProperty(value = "创建部门")
    private Long createDept;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 修改人
     */
    @ExcelProperty(value = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @ExcelProperty(value = "修改时间")
    private Date updateTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 删除标志
     */
    @ExcelProperty(value = "删除标志")
    private String delFlag;


}
